<template>
  <div :class="`right_side_drawer ${isOpen ? 'open' : 'close'}`">
    <div class="icon_switch" id="switch" @click="changeIsOpen">
      <span class="title">填报说明</span>
    </div>
    <div class="menu_detail">
      <h3 style="text-indent:2em;">
        填报金额相关数据均以万元为单位，保留2位小数；填报日期相关数据，表格属性为日期型，格式为xxxx年x月；设计下拉列表选项的，务必根据下拉列表选择填列。具体表格填报说明如下:
      </h3>
      <ol>
        <li>本表由股份公司指挥部填报；</li>
        <li>
          填报范围为：截至2021年12月31日久竣未结、已竣未结和已竣已结未销号股份公司总包工程项目（具体见专项审计调查方案）；
        </li>
        <li>项目类型分为：铁路、公路、城轨、市政、房建、水利水电、其他，根据下拉列表选择填列；</li>
        <li>项目所在地格式按照“XX省XX市”填写；</li>
        <li>业主类别：地方政府,国有企业,民营企业,根据下拉列表选择填列；</li>
        <li>表中填报数据均为不含税金额。</li>
      </ol>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    isJnxm: {
      type: Boolean,
      default: true,
    },
  },
  data() {
    return {
      isOpen: false,
    }
  },
  methods: {
    changeIsOpen() {
      this.isOpen = !this.isOpen
    },
  },
}
</script>

<style lang="less" scoped>
.right_side_drawer {
  height: 62%;
  width: 450px;
  position: fixed;
  right: 0;
  top: 22%;
  padding: 10px 0px 10px 10px;
  display: flex;
  z-index: 100;
  transform: translateX(385px);
  overflow-y: scroll;
  pointer-events: none;
}
.right_side_drawer>div{
   pointer-events:auto;
}
.icon_switch {
  width: 55px;
  height: 125px;
  writing-mode: vertical-lr;
  text-align: center;
  background-color: rgb(57, 86, 166);
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  font-size: 20px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  cursor: pointer;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  .title {
    &::before {
      content: '*';
      color: red;
      display: inline-block;
      margin-bottom: 5px;
    }
  }
}

.menu_detail {
  width: calc(100% - 60px);
  height: 100%;
  background-color: rgb(243, 246, 255);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  padding: 30px 15px;
  box-sizing: border-box;
  overflow-y: scroll;
  h3 {
    color: red;
  }
  ol {
    color: red;
    li {
      margin-top: 10px;
    }
  }
}

.open {
  transform: translateX(10px);
  transition: transform 0.3s linear;
}

.close {
  transform: translateX(385px);
  transition: transform 0.3s linear;
}
</style>